﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace test.demo.Model.PRO生产管理
{
    /// <summary>
    /// 生产任务投料表
    /// </summary>
    public class Pro_Task_Issue : Entity<int>
    {
     

        /// <summary>
        /// 生产任务 ID
        /// </summary>
        [Required]
        public int TaskId { get; set; }

        /// <summary>
        ///  生产工单 ID
        /// </summary>
        [Required]
        public int WorkorderId { get; set; }

        /// <summary>
        /// 工作站 ID
        /// </summary>
        public int WorkstationId { get; set; }

        /// <summary>
        /// 单据 ID
        /// </summary>
        public int SourceDocId { get; set; }

        /// <summary>
        ///  单据编号
        /// </summary>
        public string? SourceDocCode { get; set; }

        /// <summary>
        ///  单据类型
        /// </summary>
        public string? SourceDocType { get; set; }

        /// <summary>
        ///  批次号
        /// </summary>
        public string? BatchCode { get; set; }

        /// <summary>
        ///  单据行 ID
        /// </summary>
        public int SourceLineId { get; set; }

        /// <summary>
        // 产品 ID
        /// </summary>
        [Required]
        public int ItemId { get; set; }

        /// <summary>
        ///  物料编码
        /// </summary>
        [Required]
        public string? ItemCode { get; set; }

        /// <summary>
        ///  物料名称
        /// </summary>
        [Required]
        public string? ItemName { get; set; }

        /// <summary>
        ///  规格型号
        /// </summary>
        public string? Specification { get; set; }

        /// <summary>
        ///  单位
        /// </summary>
        [Required]
        public string? UnitOfMeasure { get; set; }

        /// <summary>
        /// 投料数量
        /// </summary>
        public double QuantityIssued { get; set; }

        /// <summary>
        /// 剩余可用数量
        /// </summary>
        public double QuantityAvailable { get; set; }

        /// <summary>
        /// 当前消耗数量
        /// </summary>
        public double QuantityUsed { get; set; }

        /// <summary>
        ///  备注
        /// </summary>
        public string? Remark { get; set; }

       
        /// <summary>
        ///  创建人
        /// </summary>
        public string? CreateBy { get; set; }

        /// <summary>
        ///  创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public string? UpdateBy { get; set; }

        /// <summary>
        ///  更新时间
        /// </summary>
        public DateTime? UpDateTime { get; set; }
    }
}
